package com.emperorque.mathpractice;

import com.emperorque.mathpractice.controller.MathPracticeController;
import com.emperorque.mathpractice.service.SimpleExpressionGenerator;
import com.emperorque.mathpractice.view.ConsoleExpressionPrinter;

/**
 * 程序主入口
 */
public class Main {
    
    public static void main(String[] args) {
        // 创建MVC各层组件
        SimpleExpressionGenerator generator = new SimpleExpressionGenerator();
        ConsoleExpressionPrinter printer = new ConsoleExpressionPrinter();
        MathPracticeController controller = new MathPracticeController(generator, printer);
        
        // 生成50道题的两套习题集
        System.out.println("正在生成100以内加减法混合算式练习题...\n");
        controller.generateBothSets(50);
        
        System.out.println("题目生成完成！");
    }
}
